<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Whisper: properties_model.h Source File</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Whisper
   
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.5.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
<div class="header">
  <div class="headertitle">
<div class="title">properties_model.h</div>  </div>
</div>
<div class="contents">
<a href="properties__model_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="preprocessor">#ifndef __PROPERTIES_MODEL_H__</span>
<a name="l00002"></a>00002 <span class="preprocessor"></span><span class="preprocessor">#define __PROPERTIES_MODEL_H__ 1</span>
<a name="l00003"></a>00003 <span class="preprocessor"></span>
<a name="l00004"></a>00004 <span class="preprocessor">#include &lt;QAbstractItemModel&gt;</span>
<a name="l00005"></a>00005 <span class="preprocessor">#include &lt;QStringList&gt;</span>
<a name="l00006"></a>00006 <span class="preprocessor">#include &lt;QModelIndex&gt;</span>
<a name="l00007"></a>00007 
<a name="l00008"></a>00008 <span class="preprocessor">#include &quot;<a class="code" href="client__connection_8h.html">client_connection.h</a>&quot;</span>
<a name="l00009"></a>00009 <span class="preprocessor">#include &quot;<a class="code" href="properties__item_8h.html">properties_item.h</a>&quot;</span>
<a name="l00010"></a>00010 
<a name="l00011"></a><a class="code" href="classCPropertiesModel.html">00011</a> <span class="keyword">class </span><a class="code" href="classCPropertiesModel.html">CPropertiesModel</a> : <span class="keyword">public</span> QAbstractItemModel
<a name="l00012"></a>00012 {
<a name="l00013"></a>00013         Q_OBJECT
<a name="l00014"></a>00014         
<a name="l00015"></a>00015 <span class="keyword">public</span>:
<a name="l00016"></a>00016         <a class="code" href="classCPropertiesModel.html#a8c60b690788b8cd3fb34795d6f6b8b14">CPropertiesModel</a>(QObject* pParent = NULL);
<a name="l00017"></a>00017         <span class="keyword">virtual</span> <a class="code" href="classCPropertiesModel.html#ace651acedea1c23f91b71fbbda02cbac">~CPropertiesModel</a>();
<a name="l00018"></a>00018 
<a name="l00019"></a>00019         QModelIndex <a class="code" href="classCPropertiesModel.html#a6c1076c0f85cc15597259224d88d0627">insertSection</a>(<span class="keyword">const</span> QVariant&amp; pSectionName);
<a name="l00020"></a>00020         QModelIndex <a class="code" href="classCPropertiesModel.html#a0b3ef438a2c015559cba154f235f79ce">insertKey</a>(<span class="keyword">const</span> QModelIndex&amp; pIndex, <span class="keyword">const</span> QVariant&amp; pKey, 
<a name="l00021"></a>00021                         <span class="keyword">const</span> QVariant&amp; pValue);
<a name="l00022"></a>00022 
<a name="l00023"></a>00023         <span class="keywordtype">bool</span> <a class="code" href="classCPropertiesModel.html#ac7127e336c26351afd25a21b2bcc33aa">loadProperties</a>(<span class="keyword">const</span> QString&amp; pFilename);
<a name="l00024"></a>00024         <span class="keywordtype">bool</span> <a class="code" href="classCPropertiesModel.html#ad9e625446ca733413c67a3f9096b145a">saveProperties</a>(<span class="keyword">const</span> QString&amp; pFilename);
<a name="l00025"></a>00025         <span class="keywordtype">void</span> <a class="code" href="classCPropertiesModel.html#af48fcb1de39d439d6551c275592f5738">sendConfig</a>(<a class="code" href="classCClientConnection.html" title="this is the actual model for the stegit-2 control">CClientConnection</a>* pConnection);
<a name="l00026"></a>00026 
<a name="l00027"></a>00027         <span class="keywordtype">void</span> <a class="code" href="classCPropertiesModel.html#a8d913801f2bbc84ce8737b63faa4d308">dropProperties</a>();
<a name="l00028"></a>00028 
<a name="l00029"></a>00029         <span class="keywordtype">bool</span> <a class="code" href="classCPropertiesModel.html#a5688d858db6dcb3d7f890e0c3bf9f5e4">parentIsRoot</a>(<span class="keyword">const</span> QModelIndex&amp; pIndex) <span class="keyword">const</span>;
<a name="l00030"></a><a class="code" href="classCPropertiesModel.html#a068042f524bee51eed33f322054b2b3e">00030</a>         <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classCPropertiesModel.html#a068042f524bee51eed33f322054b2b3e">setReadOnly</a>(<span class="keywordtype">bool</span> pReadOnly) { <a class="code" href="classCPropertiesModel.html#a93660ec8dcf0aac95459a4d161fc277a">mReadOnly</a> = pReadOnly; }
<a name="l00031"></a><a class="code" href="classCPropertiesModel.html#aa8acdf54bb7fa8bf216a1cc81008e06e">00031</a>         <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="classCPropertiesModel.html#aa8acdf54bb7fa8bf216a1cc81008e06e">isReadOnly</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="classCPropertiesModel.html#a93660ec8dcf0aac95459a4d161fc277a">mReadOnly</a>; }
<a name="l00032"></a>00032 
<a name="l00033"></a>00033 signals:
<a name="l00034"></a>00034         <span class="keywordtype">void</span> <a class="code" href="classCPropertiesModel.html#a194712e537698b929e78a2438ba62998">modelSorted</a>();
<a name="l00035"></a>00035 
<a name="l00036"></a>00036 <span class="keyword">private</span> slots:
<a name="l00037"></a>00037         <span class="keywordtype">void</span> <a class="code" href="classCPropertiesModel.html#adeadad98e4ce93d6624e99ec9c8056f1">configReceived</a>(<span class="keyword">const</span> QString&amp; pSection, <span class="keyword">const</span> QString&amp; pKey, <span class="keyword">const</span> QString&amp; pValue);
<a name="l00038"></a>00038 
<a name="l00039"></a>00039 <span class="keyword">private</span>:
<a name="l00040"></a>00040         <a class="code" href="classCPropertiesModel.html#a8c60b690788b8cd3fb34795d6f6b8b14">CPropertiesModel</a>(<span class="keyword">const</span> <a class="code" href="classCPropertiesModel.html">CPropertiesModel</a>&amp; );
<a name="l00041"></a>00041         <a class="code" href="classCPropertiesModel.html">CPropertiesModel</a>&amp; <a class="code" href="classCPropertiesModel.html#a2464850b8427a170cd3159b4840130f8">operator=</a>(<span class="keyword">const</span> <a class="code" href="classCPropertiesModel.html">CPropertiesModel</a>&amp; );
<a name="l00042"></a>00042 
<a name="l00043"></a>00043         <span class="keyword">virtual</span> QModelIndex <a class="code" href="classCPropertiesModel.html#a63862d7fdd70f769e163f1a824e6aee9">index</a>(<span class="keywordtype">int</span> pRow, <span class="keywordtype">int</span> pColumn, <span class="keyword">const</span> QModelIndex&amp; pParent = QModelIndex()) <span class="keyword">const</span>;
<a name="l00044"></a>00044         <span class="keyword">virtual</span> QModelIndex <a class="code" href="classCPropertiesModel.html#a62c11dc188f0b4645f1d8ed5273d5a7a">parent</a>(<span class="keyword">const</span> QModelIndex&amp; pIndex) <span class="keyword">const</span>;
<a name="l00045"></a>00045         <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classCPropertiesModel.html#a217a9773c930b6103b41100ff70d581c">rowCount</a>(<span class="keyword">const</span> QModelIndex&amp; pParent) <span class="keyword">const</span>;
<a name="l00046"></a>00046         <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classCPropertiesModel.html#af26eaec763cb0744286f05021c607ebc">columnCount</a>(<span class="keyword">const</span> QModelIndex&amp; pParent) <span class="keyword">const</span>;
<a name="l00047"></a>00047         <span class="keyword">virtual</span> QVariant <a class="code" href="classCPropertiesModel.html#ac1d800a4b54643428a9167c4b59914ac">data</a>(<span class="keyword">const</span> QModelIndex&amp; pIndex, <span class="keywordtype">int</span> pRole) <span class="keyword">const</span>;
<a name="l00048"></a>00048         <span class="keywordtype">bool</span> <a class="code" href="classCPropertiesModel.html#a108d40cbdc608d96982c3532c4c7f012">setData</a>(<span class="keyword">const</span> QModelIndex &amp;pIndex, <span class="keyword">const</span> QVariant &amp;pValue, <span class="keywordtype">int</span> role = Qt::EditRole);
<a name="l00049"></a>00049         <span class="keyword">virtual</span> Qt::ItemFlags <a class="code" href="classCPropertiesModel.html#adb69ea677223dd453e51699ae1a52d6b">flags</a>(<span class="keyword">const</span> QModelIndex&amp; pIndex) <span class="keyword">const</span>;
<a name="l00050"></a>00050         QVariant <a class="code" href="classCPropertiesModel.html#a9ca5a8fde67ce161de01a1218c3f3c7b">headerData</a>(<span class="keywordtype">int</span> section, Qt::Orientation orientation, <span class="keywordtype">int</span> role = Qt::DisplayRole) <span class="keyword">const</span>;
<a name="l00051"></a>00051         <span class="keywordtype">void</span> <a class="code" href="classCPropertiesModel.html#abbe677779e5d814dc6701be73f4cd354">sort</a>(<span class="keywordtype">int</span> pColumn, Qt::SortOrder pOrder);
<a name="l00052"></a>00052 
<a name="l00053"></a>00053         <span class="keywordtype">bool</span> <a class="code" href="classCPropertiesModel.html#aa3f9c55d80662634473c234f8a067807">insertRows</a>(<span class="keywordtype">int</span> pPosition, <span class="keywordtype">int</span> pRows, 
<a name="l00054"></a>00054                         <span class="keyword">const</span> QModelIndex &amp;pParent = QModelIndex());
<a name="l00055"></a>00055         <span class="keywordtype">bool</span> <a class="code" href="classCPropertiesModel.html#aca7d3d4799aae3c77ff4d661f4fd46a0">removeRows</a>(<span class="keywordtype">int</span> position, <span class="keywordtype">int</span> rows, 
<a name="l00056"></a>00056                         <span class="keyword">const</span> QModelIndex &amp;<a class="code" href="classCPropertiesModel.html#a62c11dc188f0b4645f1d8ed5273d5a7a">parent</a> = QModelIndex());
<a name="l00057"></a>00057 
<a name="l00058"></a>00058         <a class="code" href="classCPropertiesItem.html">CPropertiesItem</a>* <a class="code" href="classCPropertiesModel.html#af1631e66eb4c5535ae2a30a874670ef4">getItem</a>(<span class="keyword">const</span> QModelIndex&amp; pIndex) <span class="keyword">const</span>;
<a name="l00059"></a>00059 
<a name="l00060"></a><a class="code" href="classCPropertiesModel.html#aabaf1bc9c55895d7a118fc97c7904fb2">00060</a>         <span class="keywordtype">bool</span> <a class="code" href="classCPropertiesModel.html#aabaf1bc9c55895d7a118fc97c7904fb2">mLoaded</a>;
<a name="l00061"></a><a class="code" href="classCPropertiesModel.html#a93660ec8dcf0aac95459a4d161fc277a">00061</a>         <span class="keywordtype">bool</span> <a class="code" href="classCPropertiesModel.html#a93660ec8dcf0aac95459a4d161fc277a">mReadOnly</a>;
<a name="l00062"></a><a class="code" href="classCPropertiesModel.html#aa121777bd0cf27c4006ff38655468ad2">00062</a>         <a class="code" href="classCPropertiesItem.html">CPropertiesItem</a>* <a class="code" href="classCPropertiesModel.html#aa121777bd0cf27c4006ff38655468ad2">mRootItem</a>;
<a name="l00063"></a>00063 };
<a name="l00064"></a>00064 
<a name="l00065"></a>00065 <span class="preprocessor">#endif </span><span class="comment">/* __PROPERTIES_MODEL_H__ */</span>
<a name="l00066"></a>00066 
</pre></div></div>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(10)"><span class="SelectionMark">&#160;</span>Defines</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>



<hr class="footer"/><address class="footer"><small>
Generated on Wed Jan 25 2012 22:00:39 for Whisper by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.5.1
</small></address>

</body>
</html>
